{extend name="public/base"/}
{block name="style"}
{/block}
{block name="content"}
    <div class="data-list" data-url="{:url('index')}">
        <form class="layui-form inline-form">
            <div class="pull-left">
                <div class="layui-inline">
                    <select name="in_id" lay-search lay-filter="data-list">
                        <option value="">调入仓库</option>
                        {foreach $warehouse as $w}
                        <option value="{$w.warehouse_id}">{$w.name}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-inline">
                    <select name="check_status" lay-search lay-filter="data-list">
                        <option value="">审批状态</option>
                        {foreach $check_status as $k=>$v}
                        <option value="{$k}">{$v}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-inline">
                    <select name="status" lay-search lay-filter="data-list">
                        <option value="">调拨状态</option>
                        {foreach $status as $k=>$v}
                        <option value="{$k}">{$v}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-inline">
                    <input class="layui-input input-order-sn" autocomplete="off" name="allot_sn" placeholder="调拨单号">
                </div>
                <div class="layui-inline">
                    <input class="layui-input input-order-sn" autocomplete="off" name="track_num" placeholder="追踪号">
                </div>
                <div class="layui-inline">
                    <input class="layui-input laydate-range" autocomplete="off" name="allot_date" placeholder="调拨日期">
                </div>
                <div class="layui-inline">
                    <input class="layui-input laydate-range" autocomplete="off" name="finish_date" placeholder="完成日期">
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-sm layui-btn-normal search"><i class="layui-icon layui-icon-search"></i></button>
                </div>
            </div>
        </form>
        <div class="layui-row form-lists-button">
            <div class="layui-inline layui-btn-group">
                <a href="{:url('add')}" class="layui-btn layui-btn-normal layui-btn-sm"><i class="layui-icon layui-icon-add-circle"></i>新增调拨单</a>
                <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" id="batch-check" target="allot-id" msg="请选择要审批的调拨单">
                    <i class="layui-icon layui-icon-auz"></i>批量审批</button>
            </div>
        </div>
        <div class="data">
            <p><i class="fa fa-spinner fa-spin"></i> 加载中...</p>
        </div>
    </div>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use(['layer', 'jquery'], function()
{
    var layer = layui.layer
        , $ = layui.jquery;
});
</script>
{/block}